package com.vcc.service.boss.request.clientRole;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BossClientRoleUpdateRequest implements Serializable {

    @NotNull(message = "角色ID不能为空")
    private Long id;

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "角色名称不能为空")
    private String name;

    @NotNull(message = "是否为客户端初始权限不能为空")
    private Boolean hasClientIntoRole;

    @NotNull(message = "是否有客户端更新权限不能为空")
    private Boolean hasClientUpdate;

    @NotNull(message = "是否有客户端数据权限不能为空")
    private Boolean hasAllData;

    @NotNull(message = "权限列表不能为空")
    private List<Long> permissionVos;

}
